package com.hdax.dm.api.base;

import com.hdax.dm.entity.base.Area;
import com.hdax.dm.entity.base.DmImage;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
public interface BaseControllerAPI {

    @PostMapping(path = "/rest/base/image/{targetId}")
    DmImage image(@PathVariable("targetId") Long targetId);

    @PostMapping(path = "rest/areas")
    List<Area> areas();
}
